{include file="public:head" /}
<body>
{include file="public:nav" /}
<div class="m-header-banner m-images-show">
        <section class="am-container am-text-center">
                <hgroup>
                    <h2>{$news_title}</h2>
                    <p>{$content|html_trim=50}</p>
                    <div class="data">
                        <span><i class="am-icon-check-square-o"></i> 点击：{$news_hits} 次</span>
                    </div>
                </hgroup>
    
        </section>
    </div>
    
    <div class="am-container">
        <article class="m-mn-box m-images-container">
            <section>
             <p>
                {$content}
             </p>
           </section>
           
           <div>
             {if condition="!empty($prev)"}
                <a href="{:url('home/News/index',array('id'=>$prev['n_id']))}" class="btn btn-primary pull-left">{:lang('last news')}：{$prev.news_title}</a>
            {/if}
            {if condition="!empty($next)"}
                <a href="{:url('home/News/index',array('id'=>$next['n_id']))}" class="btn btn-primary pull-right">{:lang('next news')}：{$next.news_title}</a>
            {/if}
           </div>

            <div>
                    <script type="text/javascript" src="{$yf_theme_path}public/js/qrcode.min.js"></script>
                    <div id="qrcode" style="width: 100px;margin:0 auto"></div>
                    <script type="text/javascript">
                        var qrcode = new QRCode(document.getElementById("qrcode"), {
                            width : 100,
                            height : 100
                        });
                        function makeCode () {
                            qrcode.makeCode("http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
                        }
                        makeCode();
                    </script>
             <div>
             {if condition="$t_open eq 1"}
               <div> 
                    {include file="public:comment" /}
               </div>
             {/if}
        </article>
    </div>



{include file="public:footer" /}        
{include file="public:scripts"/}   
</body>
</html>  
 